iT邦幫忙

0

新手王坤生問兩個簡單的問題,一起學習!

  • 分享至 

  • xImage
  •  

private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
textBox1->Text = "";
int i,j,result;
for(i=1;i<10;i++)
{for(j=1;j<=i;j++)
{ result=ij;
textBox1->Text += i + "
" + j + "=" + result + " ";
}
textBox1->Text += "\r\n";/每一行後換行/
}
}

本人王坤生用的Visual Studio 2010,這是一個WINDOWS窗體應用程序中,button1單擊事件代碼。

問:button1的其它事件(例如鼠標在上面移動事件)怎麽編寫?

問:怎樣在一個listbox中輸出上面的九九乘法表?

謝謝!


圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言